package com.github.fork.plugin;

import org.springframework.jdbc.datasource.lookup.AbstractRoutingDataSource;

/**
 * @author Jerry Liu
 * @since 2017/3/29
 */
public class DynamicDataSource extends AbstractRoutingDataSource {

    @Override
    protected Object determineCurrentLookupKey() {
        return DataSourceSwitcher.getDataSource();
    }
}
